package com.webdemo04.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;

import com.opensymphony.xwork2.ActionSupport;

@Namespace(value = "/jsp")
@Action(value = "/UserAction", 
	results = { @Result(name = "success", location = "/WEB-INF/jsp/user.jsp") })
public class UserAction extends ActionSupport {
	private static final long serialVersionUID = 1L;
	private int id;
	private String name;
	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
